home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / ffg202.zip / DEMO_BAT.ZIP / RECENT.BAT < prev    next >
DOS Batch File  |  1995-04-01  |  1KB  |  29 lines

  1. @echo off
  2. echo This is a listing of files created/modified in the last N minutes.
  3. call presskey
  4. if %1.==. goto 1_OKAY
  5.   if not %1.==. for %%f in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if %1==%%f: goto 1_OKAY
  6.   if not %1.==. for %%f in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do if %1==%%f: goto 1_OKAY
  7.   if "%1"=="*:" goto 1_OKAY
  8.   if "%1"==":"  goto 1_OKAY
  9.   GOTO USAGE
  10. :1_OKAY
  11. if %2.==. GOTO LASTMINUTE
  12.   echo Searching for files created/modified in the last %2 minutes...
  13.   echo.
  14.   ffg /qmsf %1* /dt /p /t%2n-
  15.   goto END
  16. :LASTMINUTE
  17.   echo Searching for files created/modified in the last minute...
  18.   echo.
  19.   ffg /qmsf %1* /dt /p /t1n-
  20.   goto END
  21. :USAGE
  22.   echo USAGE: %0  [d: [m]]
  23.   echo.
  24.   echo    where d: is drive to search and 'm' is the number of minutes back in
  25.   echo    time.  If no drive is specified, the current drive is searched.  If
  26.   echo    if no 'm' is specified files dated later than one minute ago are found.
  27.   echo    To specify the 'm' you must explicity specify the drive.
  28. :END
  29.